package com.ysy.tz.mfg.entity;

import com.ysy.tz.core.engine.KeyValuePair;
import com.ysy.tz.core.engine.Modelable;

public class GradingRuleEntity extends BaseEntity implements Modelable, KeyValuePair {
    private String seqId;
    private String slaughterType;
    private String mjType;
    private String weightStart;
    private String weightEnd;
    private String levelCode;
    private String levelName;
    private String remark;

    public String getModelStringValue() {
        return this.getLevelCode();
    }

    public String getKeyPair() {
        return this.levelCode;
    }

    public String getValuePair() {
        return this.levelCode;
    }

    public GradingRuleEntity() {
    }

    public String getSeqId() {
        return this.seqId;
    }

    public String getSlaughterType() {
        return this.slaughterType;
    }

    public String getMjType() {
        return this.mjType;
    }

    public String getWeightStart() {
        return this.weightStart;
    }

    public String getWeightEnd() {
        return this.weightEnd;
    }

    public String getLevelCode() {
        return this.levelCode;
    }

    public String getLevelName() {
        return this.levelName;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setSeqId(String seqId) {
        this.seqId = seqId;
    }

    public void setSlaughterType(String slaughterType) {
        this.slaughterType = slaughterType;
    }

    public void setMjType(String mjType) {
        this.mjType = mjType;
    }

    public void setWeightStart(String weightStart) {
        this.weightStart = weightStart;
    }

    public void setWeightEnd(String weightEnd) {
        this.weightEnd = weightEnd;
    }

    public void setLevelCode(String levelCode) {
        this.levelCode = levelCode;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof GradingRuleEntity)) {
            return false;
        } else {
            GradingRuleEntity other = (GradingRuleEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label107: {
                    Object this$seqId = this.getSeqId();
                    Object other$seqId = other.getSeqId();
                    if (this$seqId == null) {
                        if (other$seqId == null) {
                            break label107;
                        }
                    } else if (this$seqId.equals(other$seqId)) {
                        break label107;
                    }

                    return false;
                }

                Object this$slaughterType = this.getSlaughterType();
                Object other$slaughterType = other.getSlaughterType();
                if (this$slaughterType == null) {
                    if (other$slaughterType != null) {
                        return false;
                    }
                } else if (!this$slaughterType.equals(other$slaughterType)) {
                    return false;
                }

                Object this$mjType = this.getMjType();
                Object other$mjType = other.getMjType();
                if (this$mjType == null) {
                    if (other$mjType != null) {
                        return false;
                    }
                } else if (!this$mjType.equals(other$mjType)) {
                    return false;
                }

                label86: {
                    Object this$weightStart = this.getWeightStart();
                    Object other$weightStart = other.getWeightStart();
                    if (this$weightStart == null) {
                        if (other$weightStart == null) {
                            break label86;
                        }
                    } else if (this$weightStart.equals(other$weightStart)) {
                        break label86;
                    }

                    return false;
                }

                label79: {
                    Object this$weightEnd = this.getWeightEnd();
                    Object other$weightEnd = other.getWeightEnd();
                    if (this$weightEnd == null) {
                        if (other$weightEnd == null) {
                            break label79;
                        }
                    } else if (this$weightEnd.equals(other$weightEnd)) {
                        break label79;
                    }

                    return false;
                }

                label72: {
                    Object this$levelCode = this.getLevelCode();
                    Object other$levelCode = other.getLevelCode();
                    if (this$levelCode == null) {
                        if (other$levelCode == null) {
                            break label72;
                        }
                    } else if (this$levelCode.equals(other$levelCode)) {
                        break label72;
                    }

                    return false;
                }

                Object this$levelName = this.getLevelName();
                Object other$levelName = other.getLevelName();
                if (this$levelName == null) {
                    if (other$levelName != null) {
                        return false;
                    }
                } else if (!this$levelName.equals(other$levelName)) {
                    return false;
                }

                Object this$remark = this.getRemark();
                Object other$remark = other.getRemark();
                if (this$remark == null) {
                    if (other$remark != null) {
                        return false;
                    }
                } else if (!this$remark.equals(other$remark)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof GradingRuleEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $seqId = this.getSeqId();
        result = result * 59 + ($seqId == null ? 43 : $seqId.hashCode());
        Object $slaughterType = this.getSlaughterType();
        result = result * 59 + ($slaughterType == null ? 43 : $slaughterType.hashCode());
        Object $mjType = this.getMjType();
        result = result * 59 + ($mjType == null ? 43 : $mjType.hashCode());
        Object $weightStart = this.getWeightStart();
        result = result * 59 + ($weightStart == null ? 43 : $weightStart.hashCode());
        Object $weightEnd = this.getWeightEnd();
        result = result * 59 + ($weightEnd == null ? 43 : $weightEnd.hashCode());
        Object $levelCode = this.getLevelCode();
        result = result * 59 + ($levelCode == null ? 43 : $levelCode.hashCode());
        Object $levelName = this.getLevelName();
        result = result * 59 + ($levelName == null ? 43 : $levelName.hashCode());
        Object $remark = this.getRemark();
        result = result * 59 + ($remark == null ? 43 : $remark.hashCode());
        return result;
    }

    public String toString() {
        return "GradingRuleEntity(seqId=" + this.getSeqId() + ", slaughterType=" + this.getSlaughterType() + ", mjType=" + this.getMjType() + ", weightStart=" + this.getWeightStart() + ", weightEnd=" + this.getWeightEnd() + ", levelCode=" + this.getLevelCode() + ", levelName=" + this.getLevelName() + ", remark=" + this.getRemark() + ")";
    }
}
